package cn.edu.ujn.liuklab3.dao;

import cn.edu.ujn.liuklab3.entity.Reservation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
@Mapper
public interface ReservationDao {

    Reservation queryById(Integer reserId);

    List<Reservation> queryAllByLimit(Reservation reservation, @Param("pageable") Pageable pageable);

    long count(Reservation reservation);

    int insert(Reservation reservation);

    int insertBatch(@Param("entities") List<Reservation> entities);

    int insertOrUpdateBatch(@Param("entities") List<Reservation> entities);

    int update(Reservation reservation);

    int deleteById(Integer reserId);

    List<Reservation> selectAll(Reservation reservation);

    Integer selectCount();
}

